<template>
  <div>
    <van-nav-bar
      title="标题"
      left-text="返回"
      left-arrow
      @click-left="$router.go(-1)"
    />
    <cutlist :arr="list" />
  </div>
</template>

<script>
import cutlist from "../cate/cutlist";
export default {
  // 组件名称
  name: "demo",
  // 组件参数 接收来自父组件的数据
  props: [],
  // 局部注册的组件
  components: { cutlist },
  // 组件状态值
  data() {
    return {
      list: [],
    };
  },
  // 计算属性
  computed: {},
  // 侦听器
  watch: {},
  // 组件方法
  methods: {},
  //生命周期
  created() {},
  mounted() {
    this.url = this.$store.state.appurl;
    this.$axios.get(`${this.url}/shop/goods/kanjia/list`).then((res) => {
        this.list = res.data.goodsMap
    });
  },
};
</script> 

<style scoped>
</style>
